import request from '@/utils/request'
export function userAll(current,size,searchKeyword) {
 return request({
  url: '/system/user/userAll',
  method: 'get',
  params:{current,size,searchKeyword}
 })
}
export function addUser(data) {
 return request({
  url: '/system/user/addUser',
  method: 'post',
  data
 })
}
export function editUser(data) {
 return request({
  url: '/system/user/updateById',
  method: 'post',
  data
 })
}
export function userInfo(id) {
 return request({
   url: `/system/user/get/${id}`,
   method: 'get'
 })
}

export function deleteid(id){
 return request({
  url:'/system/user/delete/id',
  method:'post',
  params:{user_id:id}
 })
}
export function getwithdrawalbill(current,size,params) {
  return request({
   url: '/system/withdrawal-record/withdrawal-bill',
   method: 'get',
   params:{current,size,...params}
  })
 }

 export function passapprove(id) {
  return request({
   url:`/system/withdrawal-record/approve-withdrawal/${id}`,
   method: 'post',
  })
 }
 export function rejectWithdrawal(id) {
  return request({
   url:`/system/withdrawal-record/reject-withdrawal/${id}`,
   method: 'post',
  })
 }
 export function getDrawdata(id) {
  return request({
   url:'/system/withdrawal-setting/getWithdrawal',
   method: 'get',
   params:{Id:id}
  })
 }
 export function updateDrawdata(data) {
  return request({
   url:'/system/withdrawal-setting/withdrawalSetting',
   method: 'post',
   data
  })
 }
